import Cookies from 'js-cookie'
// 操作cookie get读取， set设置， remove移除

const TokenKey = 'hrsass_token'
const Timekey = 'hrsass_time'
export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function setTime() {
  return Cookies.set(Timekey, Date.now())
}

export function getTime() {
  return Cookies.get(Timekey)
}
